package com.woshengqile.service;

import com.jfinal.plugin.activerecord.Page;
import com.woshengqile.Pageable;
import com.woshengqile.dao.VideoInfoDao;
import com.woshengqile.model.VideoInfo;
import com.woshengqile.model.VideoInfoCategory;
import com.woshengqile.model.VideoInfoTag;

import net.hasor.core.Inject;

/**
 * Service - 视频
 * @author Think
 */
public class VideoInfoService extends BaseService<VideoInfo> {

	@Inject
	private VideoInfoDao videoInfoDao;
	
	public VideoInfoService() {
		super(VideoInfo.class);
	}
	
	/**
	 * 查找视频分页
	 * @param videoInfoCategory 视频分类
	 * @param videoInfoTag 视频标签
	 * @param pageable 分页信息
	 * @return 分页
	 */
	public Page<VideoInfo> findPage(VideoInfoCategory videoInfoCategory, VideoInfoTag videoInfoTag, Pageable pageable) {
		return videoInfoDao.findPage(videoInfoCategory, videoInfoTag, pageable);
	}

}
